# -*- coding:utf-8 -*-
# @Time :2025/3/7

# 提取json文件中的数据，并整理为[(),(),(),()]格式
import json
from config import BASE_DIR

def get_json_data(filename):
    with open(BASE_DIR + '/data/' + filename,encoding='utf-8') as f:
        data = json.load(f)
        # print('获取的json内容',data)
        new_list = []
        for item in data:
            # item.pop('desc')
            new_list.append(tuple(item.values())[1:])
        # print('获取的元组内容',new_list)
    return new_list

